import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_all_measures_by_id_and_level_entity.g.dart';


@JsonSerializable()
class GetAllMeasuresByIdAndLevelEntity extends ChoiceBean {
	GetAllMeasuresByIdAndLevelEntity();

	factory GetAllMeasuresByIdAndLevelEntity.fromJson(Map<String, dynamic> json) => $GetAllMeasuresByIdAndLevelEntityFromJson(json);
	String? id;
	String? riskMeasureName;
	String? riskEventId;
	String? riskEventName;
	String? riskObjectId;
	String? riskObjectName;
	String? riskUnitId;
	String? riskUnitName;
	String? companyCode;
	String? associationMeasureId;
	String? dataSrc;
	dynamic dataSrcLabel;
	String? riskMeasureDesc;
	String? troubleshootContent;
	double? consequenceReduction;
	double? probabilityReduction;
	String? classify1;
	dynamic classify1Label;
	String? classify2;
	dynamic classify2Label;
	String? classify3;
	String? deleted;
	String? workType;
	String? createDate;
	String? createBy;
	String? createById;
	String? updateById;
	String? updateDate;
	String? updateBy;
	String? hazardCode;
	double? status;
	String? warehouseId;
	double? isUpload;
	String? riskMeasureLevel;
	dynamic riskMeasureLevelLabel;
	String? taskNum;

	Map<String, dynamic> toJson() => $GetAllMeasuresByIdAndLevelEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}

  @override
  String getId() {
    return id ?? '';
  }

  @override
  String getShowName() {
    return riskMeasureDesc ?? '';
  }
}
